package com.baor.controller;

import com.baor.service.CouponUserService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/couponUser")
public class CouponUserController {
    @Autowired
    private CouponUserService couponUserService;
    @RequestMapping("/list")
    public AjaxResult<?> list(@RequestBody Map<String,Object> params){
        return this.couponUserService.list(params);
    }
    @RequestMapping("/orderList")
    public AjaxResult<?> orderList(@RequestBody Map<String,Object> params){
        return  this.couponUserService.orderList(params);
    }
}
